package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 赛事运动
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_competition_sports")
@ApiModel(value="GeConCompetitionSports对象", description="赛事运动")
public class GeConCompetitionSports implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "赛事名称")
    private String name;

    @ApiModelProperty(value = "线路id")
    private String routeId;

    @ApiModelProperty(value = "线路名称")
    private String routeName;

    @ApiModelProperty(value = "赛事线路图片")
    private String routeImg;

    @ApiModelProperty(value = "绑定方式（1手环，2人脸）")
    private String binding;

    @ApiModelProperty(value = "标签")
    private String lable;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "赛事类型")
    private String type;

    @ApiModelProperty(value = "组别")
    @TableField("`group`")
    private Integer group;

    @ApiModelProperty(value = "活动状态（0未开始 1进行中 2已结束 3报名中）")
    private String active;

    @ApiModelProperty(value = "是否置顶")
    private Integer isTop;

    @ApiModelProperty(value = "审批状态")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "主图")
    private String mainImage;

    @ApiModelProperty(value = "地点")
    private String place;

    @ApiModelProperty(value = "竞赛规程")
    private String playDescribe;

    @ApiModelProperty(value = "报名须知")
    private String notes;

    @ApiModelProperty(value = "比赛声明")
    private String details;

    @ApiModelProperty(value = "赛事简介")
    private String introduction;

    @ApiModelProperty(value = "热门状态（'0':不热门，'1':热门）")
    private String hot;

    @ApiModelProperty(value = "是否删除（0：正常，1：已删除）")
    private Integer isDelete;

    @ApiModelProperty(value = "报名开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime startDate;

    @ApiModelProperty(value = "报名结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime endDate;

    @ApiModelProperty(value = "浏览量")
    private int hit;
}
